package com.cn.client;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * @Description: ClientApplication
 * @Author: ZhangMao
 * @Date: 2022-03-10
 */

@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)
//“exclude= DataSourceAutoConfiguration.class”，排除datasource的自动注解
@EnableFeignClients(basePackages = {"feign","com.cn.api"})
@EnableDiscoveryClient
public class ClientApplication {
    public static void main(String[] args){
        SpringApplication.run(ClientApplication.class,args);
    }
}
